home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 October
/
PCWorld_2000-10_cd2.bin
/
lotus
/
Organizer 6.exe
/
HTML
/
CALENDAR
/
FRAME.INC
< prev
next >
Wrap
Text File
|
1999-09-27
|
6KB
|
181 lines
<script language="JavaScript">
<!-- This hides the code from older browsers
var isIE = false;
var g = new Object();
<!!ORG-IF(FIRSTLINEONLY)>
g.firstlineonly=true;
<!!ORG-ELSE>
g.firstlineonly=false;
<!!ORG-/IF>
<!!ORG-IF(SHOWICONS)>
g.maxlinesize=9;
<!!ORG-ELSE>
g.maxlinesize=11;
<!!ORG-/IF>
g.showtime=true;
function showDefault()
{
var details;
details = "<html>";
details += "<head>";
details += "<title><!!ORG-STRING(65373;Appointment Details)></title>";
details += '<style type="text/css">';
details += '<!--';
details += '.DetailsH {font-family:Arial,Helvetica,Univers,Zurich BT; font-size:10pt; font-weight:bold; color:black}';
details += '.DetailsN {font-family:Arial,Helvetica,Univers,Zurich BT; font-size:8pt; font-weight:normal; color:black}';
details += '-->';
details += "</style>";
details += "</head>";
details += '<body BACKGROUND="TileGYSq.gif" BGCOLOR="#FFFFFF">';
details += '<TABLE ID="Table1" BORDER=0 BGCOLOR="#CCCCCC" CELLSPACING=0 CELLPADDING=2 WIDTH=134 >';
details += "<TR>";
details += "<TD WIDTH=3 HEIGHT=19> </TD>";
details += '<TD WIDTH=117><P CLASS="DetailsH">Details</TD>';
details += "<TD WIDTH=2> </TD>";
details += '</TR>';
details += '<TR>';
details += "<TD WIDTH=3 HEIGHT=19> </TD>";
details += '<TD WIDTH=117><P CLASS="DetailsN"><!!ORG-STRING(65372;Click an appointment in the calendar to view its details.)></TD>';
details += "<TD WIDTH=2> </TD>";
details += '</TR>';
details += '<TR>';
details += '<TD HEIGHT=5> </TD>';
details += '<TD WIDTH=117><P CLASS="DetailsH"> </TD>';
details += '<TD> </TD>';
details += '</TR>';
details += '</TABLE>';
details += '</body>';
details += '</html>';
parent.caldetails.document.write(details);
parent.caldetails.document.close();
}
function showDetails(date, time, dur, desc, cats)
{
var details;
details = "<html>";
details += "<head>";
details += "<title>Details</title>";
details += '<style type="text/css">';
details += '<!--';
details += '.DetailsH {font-family:Arial,Helvetica,Univers,Zurich BT; font-size:10pt; font-weight:bold; color:black}';
details += '.DetailsN {font-family:Arial,Helvetica,Univers,Zurich BT; font-size:8pt; font-weight:normal; color:black}';
details += '-->';
details += "</style>";
details += "</head>";
details += '<body BACKGROUND="TileGYSq.gif" BGCOLOR="#CCCCCC">';
details += '</p>';
details += '<TABLE ID="Table2" BORDER=0 BGCOLOR="#CCCCCC" CELLSPACING=0 CELLPADDING=2 WIDTH=134 >';
details += '<TR>';
details += '<TD COLSPAN=3 HEIGHT=19><P CLASS="DetailsH"><!!ORG-STRING(65373;Appointment Details)></TD>';
details += '</TR>';
details += '<TR>';
details += '<TD> </TD>';
details += '<TD WIDTH=117><P CLASS="DetailsN">Date:</TD>';
details += '<TD> </TD>';
details += '</TR>';
details += '<TR>';
details += '<TD> </TD>';
details += '<TD WIDTH=117 BGCOLOR="#FFFFFF"><P CLASS="DetailsN">' + date + '</TD>';
details += '<TD> </TD>';
details += '</TR>';
details += '<TR>';
details += '<TD> </TD>';
details += '<TD WIDTH=117><P CLASS="DetailsN">Time:</TD>';
details += '<TD> </TD>';
details += '</TR>';
details += '<TR>';
details += '<TD> </TD>';
details += '<TD WIDTH=117 BGCOLOR="#FFFFFF"><P CLASS="DetailsN">' + time + '</TD>';
details += '<TD> </TD>';
details += '</TR>';
details += '<TR>';
details += '<TD> </TD>';
details += '<TD WIDTH=117><P CLASS="DetailsN">Duration:</TD>';
details += '<TD> </TD>';
details += '</TR>';
details += '<TR>';
details += '<TD> </TD>';
details += '<TD WIDTH=117 BGCOLOR="#FFFFFF"><P CLASS="DetailsN">' + dur + '</TD>';
details += '<TD> </TD>';
details += '</TR>';
details += '<TR>';
details += '<TD> </TD>';
details += '<TD WIDTH=117><P CLASS="DetailsN">Description:</TD>';
details += '<TD> </TD>';
details += '</TR>';
details += '<TR>';
details += '<TD> </TD>';
details += '<TD WIDTH=117 BGCOLOR="#FFFFFF"><P CLASS="DetailsN">' + desc + '</TD>';
details += '<TD> </TD>';
details += '</TR>';
details += '<TR>';
details += '<TD> </TD>';
details += '<TD WIDTH=117><P CLASS="DetailsN">Categories:</TD>';
details += '<TD> </TD>';
details += '</TR>';
details += '<TR>';
details += '<TD> </TD>';
details += '<TD WIDTH=117 BGCOLOR="#FFFFFF"><P CLASS="DetailsN">' + cats + '</TD>';
details += '<TD> </TD>';
details += '</TR>';
details += '<TR>';
details += '<TD HEIGHT=7> </TD>';
details += '<TD> </TD>';
details += '<TD> </TD>';
details += '</TR>';
details += '</TABLE>';
details += '<a href="javascript:parent.showDefault()"> Reset </a>';
details += '</body>';
details += '</html>';
parent.caldetails.document.write(details);
parent.caldetails.document.close();
}
function argQuote( s )
// JavaScript string argument to a function when written to HTML stream such that it is
// once again an argument to a JavaScript function, will need to have some chars encoded.
// Specifically, the single-quote and backslash characters
{
var qS="";
if( s.replace )
{
qS = s.replace ( /\\|\/g, "\\\\" );
qS = qS.replace( /'|'/g, "\\'" );
}
else
qS = s;
return qS
}
function writeEntry(date, time, dur, desc, cats)
{
if (g.showtime == true)
entry = time + ' ';
else
entry = '';
entry += '<a href="javascript:parent.showDetails(' + "'" + date + "','" + time + "','" + dur + "','" + argQuote(desc) + "','" + argQuote(cats) + "')" +'"';
entry += 'TITLE="' + (desc.replace ? desc.replace( /<BR>/g, "\n" ) : desc) + '">';
<!!ORG-IF(SHOWICONS)>
entry += '<IMG SRC="Calendar.gif" WIDTH=20 HEIGHT=13 BORDER=0>';
<!!ORG-/IF>
if(desc.length > g.maxlinesize && g.firstlineonly)
entry += desc.substring(0, g.maxlinesize) + "...";
else
entry += desc;
entry += '</a>';
parent.calmain.document.write(entry);
parent.calmain.document.close();
}
// -->
</script>
<script language="JScript">
<!-- This hides the code from older browsers
isIE = true;
// -->
</script>